/*
 * @Author: 一盏青灯欲锁魂
 * @Date: 2021-06-15 16:32:50
 * @LastEditTime: 2021-06-24 11:18:36
 * @Description: 控制器
 * @FilePath: \nest_demo\src\module\index\index.controller.ts
 */
import { Controller, Get } from '@nestjs/common';
import { EmailService } from './email.service';


@Controller('/send-email')
export class EmailController{
    constructor(private readonly emailService:EmailService){}

    @Get()
    getUrlData(){
        this.emailService.sendEmail();
        return '邮件发送成功！';
    }
}